package jjn.round1;

/**
 * @author Jjn
 * @since 2022/9/29 22:35
 */
public class Interview_1_9_StringRotation {
    public boolean isFlipedString(String s1, String s2) {
        if (s1 == null && s2 == null) {
            return true;
        }
        if (s1 == null || s2 == null) {
            return false;
        }
        if (s1.length() != s2.length()) {
            return false;
        }
        String s = s1 + s1;
        return s.contains(s2);
    }
}
